import i18n from '@/lang'
const $t = i18n.t

export const tranlateKeyMap = () => { // 无法自动更新 ---- 需要翻译的map
  const LANG_ENUM = [
    { title: $t('keyMap.lang.zh'), code: 'zh' },
    { title: $t('keyMap.lang.en'), code: 'en' }
  ]
  const CAR_STATUS = [
    { label: $t('keyMap.CAR_STATUS.notRent'), icon: 'notRent', value: 1, color: '#F59A24',  }, // 待出租
    { label: $t('keyMap.CAR_STATUS.forRent'), icon: 'forRent', value: 2, color: '#19D559' }, // 出租中
    { label: $t('keyMap.CAR_STATUS.maintenance'), icon: 'maintenance', value: 3, color: '#F53124' }, // 维修中
    { label: $t('keyMap.CAR_STATUS.scrapped'), icon: 'scrapped', value: 4, color: '#666666' }, // 已报废
  ]
  return {
    LANG_ENUM,
    CAR_STATUS
  }
}
